let mongoose = require('mongoose');
const conn = mongoose.createConnection('mongodb://localhost:27017/xx',{ useNewUrlParser: true });
let UserSchema = new mongoose.Schema({
    username:{type:String,required:true},
    password:String,
});
let plugin = require('./plugin');
UserSchema.plugin(plugin,{index:true});
let User = conn.model('User',UserSchema);
User.create({username:'zhufeng'});
